<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01_BOM操作</title>
</head>
<body>
    <button onclick="alert('直接爆炸')">按钮</button>
    <button onclick="confirm('确定要炸吗?')">另一个按钮</button>
<script>
    //window对象是浏览器内置的全局对象,无需创建或导包,直接使用即可
    console.log(parseInt("123.564"));
    console.log(parseInt(123.565));
    console.log(parseInt(123));
    console.log(parseInt("哈哈哈"));

    console.log(parseFloat("123.564"));
    console.log(parseFloat(123.565));
    console.log(parseFloat(123));
    console.log(parseFloat("哈哈哈"));

    console.log(isNaN("123.564"));
    console.log(isNaN(123.565));
    console.log(isNaN(123));
    console.log(isNaN("哈哈哈"));
</script>
</body>
</html>